'''
输入:
ossosso
osso

输出:
2
'''

s = input()
target = input()
ans = 0
len_t = len(target)
for i in range(len(s)):
    if s[i] == target[0]:
        if s[i : i + len_t - 1] == target[0 : len_t - 1]:
            ans += 1
print(ans)